﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GylCSharpUtils.Common.Abstract {
    public abstract class AConverter {

        public abstract byte[] GetBytes(object obj);

        public abstract object GetObject(byte[] data);

        public T GetObject<T>(byte[] data) {
            return (T)GetObject(data);
        }
    }
}
